<?php

namespace app\wechat\controller;

use app\common\model\IssuesModel;

/**
 * Class Issues
 * @package app\wechat\controller
 */
class Issues extends \think\Controller
{

    public function index()
    {
        return $this->fail("hello world!");
    }

    /**
     * 新增意见反馈
     *
     * @return \think\response\Json
     */
    public function add()
    {
        $arr = $this->ioAll();
        $issuesModel = new IssuesModel();
        $issuesSave = $issuesModel->save($arr);
        return $issuesSave ? $this->ok($issuesSave) : $this->fail("新增意见反馈失败");
    }
}
